<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('UserEdit/doPost')}">
        <div class="form-group">
            <label for="input-score" class="col-sm-2 control-label">状态</label>
            <div class="col-md-6 col-sm-10">
                <select name="user_status" class="form-control" id="input_userstatus">
                    <option value="1">正常</option>
                    <option value="2">未验证</option>
                    <option value="0">拉黑</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">金币</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-coin" name="coin" value="{$coin}">
                <p class="help-block">用户操作时金币更改，可以为负</p>
            </div>
        </div>
        <div class="form-group">
            <label for="input-cycle_type" class="col-sm-2 control-label">服务器地址</label>
            <div class="col-md-6 col-sm-10">
                <select name="serverid" id="input-cycle_type" class="form-control">
                    <foreach id="vo" name="server">
                        <option value="{$vo.serverid}" <if condition="$vo.serverid eq $serverid"> selected="selected" </if> >{$vo.servername}</option>
                    </foreach>
                </select>
                <p class="help-block">选择玩家所属服务器</p>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="id" value="{$id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>$('#input_userstatus').val("{$user_status}");</script>
</body>
</html>